package com.jd.jerry.study.plugins;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * Created by chede on 2017/9/10.
 */

public class MyBeanBostProcesser implements BeanPostProcessor {

    Logger logger= LoggerFactory.getLogger(MyBeanBostProcesser.class);
    @Override
    public Object postProcessBeforeInitialization(Object o, String s) throws BeansException {
        logger.info( "===========myBeanPostProcesser begin============");
        return o;
    }

    @Override
    public Object postProcessAfterInitialization(Object o, String s) throws BeansException {
        logger.info( "===========myBeanPostProcesser after============");
        return o;
    }
}
